#include <iostream>
#include <ctime>
using namespace std;
int main(){
	srand((unsigned int)time(NULL));
	int a=rand()%100+1;
	cout<<a<<endl;
	int num=0;
	while(1){
		cin>>num;
		if (num>a){
			cout<<"数过大"<<endl;
		}else if (num<a){
			cout<<"数过小"<<endl;
		}else{
			cout<<"恭喜你猜对了"<<endl;
			break;
		}
	}
	return 0;
}
